package cn.edu.imust.loginregisterdemo.home.model.domain;

import java.io.Serializable;
import java.util.List;

public class DownDataResult implements Serializable {

    @Override
    public String toString() {
        return "DownDataResult{" +
                "code='" + code + '\'' +
                ", sucess='" + sucess + '\'' +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }

    /**
     * code : 200
     * sucess : true
     * msg : 操作成功
     * data : [
     *          {   "username":"hzy630",
     *              "time":"2020-05-18 22:35:07",
     *              "gps":"定位信息:\n纬度==40.983243\n经度==113.107655",
     *              "edit":"0",
     *              "pic":"\nRlYi3DR4xyvy\np4AA\n",
     *              "ledgerHash":{"value":"j5x99mtDjwRFU9f27WpT2CsUBNDXgB2xCz84YorYso4ibH"},
     *              "previousHash":{"value":"j5mXANkByXP7Rp4upemQSqbCzMiQ455drLhdzNgGcG2k3P"},
     *              "transactionSetHash":{"value":"j5i4zYsVZ2aNZM8CvrugNLh1y9ZPSLvKQhLt7M9FdBXDwv"},
     *              "userAccountSetHash":{"value":"j5qkvvsppXPR4ToHweVyJGnXDPrqdjMBJTdput4sdymQXp"},
     *              "adminAccountHash":{"value":"j5fSsxhQLKPdnFDig9NTHJ757aoJnY6TLbszHkiX7pDjTw"},
     *              "dataAccountSetHash":{"value":"j5tKtLCbYz1CGuWCkMxXk4sM64fqUsdDFNbdCFsRH9drKC"},
     *              "hash":{"value":"j5o5SzvqawEnsTLr8UR7mp1xytdZ6zqgEmQPNodfAVKZ8y"},
     *              "height":28,
     *              "timestamp":0
     *           },
     *           {"username":"hzy630","time":"2020-05-18 22:24:58","gps":"定位信息:\n纬度==40.983243\n经度==113.107655","edit":"APP","pic":"\n","ledgerHash":{"value":"j5x99mtDjwRFU9f27WpT2CsUBNDXgB2xCz84YorYso4ibH"},"previousHash":{"value":"j5qFXTedqRkUHTnX8HFk1eCrKYMeDpHF52qrDGRYhimajM"},"transactionSetHash":{"value":"j5jTqht5Tgio5H8s5FKh8CiiLFLcYFMKRiP2H3QXafhiDS"},"userAccountSetHash":{"value":"j5qkvvsppXPR4ToHweVyJGnXDPrqdjMBJTdput4sdymQXp"},"adminAccountHash":{"value":"j5fSsxhQLKPdnFDig9NTHJ757aoJnY6TLbszHkiX7pDjTw"},"dataAccountSetHash":{"value":"j5ox1cTN2mBK2erNxr6NTRyF5GehPttdvq3UpVHxbJfP5q"},"hash":{"value":"j5mXANkByXP7Rp4upemQSqbCzMiQ455drLhdzNgGcG2k3P"},"height":27,"timestamp":0}]
     */

    private String code;
    private String         sucess;
    private String         msg;
    private List<DataBean> data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getSucess() {
        return sucess;
    }

    public void setSucess(String sucess) {
        this.sucess = sucess;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Serializable {

        @Override
        public String toString() {
            return "DataBean{" +
                    "username='" + username + '\'' +
                    ", time='" + time + '\'' +
                    ", gps='" + gps + '\'' +
                    ", edit='" + edit + '\'' +
                    ", pic='" + pic + '\'' +
                    ", ledgerHash=" + ledgerHash +
                    ", previousHash=" + previousHash +
                    ", transactionSetHash=" + transactionSetHash +
                    ", userAccountSetHash=" + userAccountSetHash +
                    ", adminAccountHash=" + adminAccountHash +
                    ", dataAccountSetHash=" + dataAccountSetHash +
                    ", hash=" + hash +
                    ", height=" + height +
                    ", timestamp=" + timestamp +
                    '}';
        }

        /**
         * username : hzy630
         * time : 2020-05-18 22:35:07
         * gps : 定位信息:
         纬度==40.983243
         经度==113.107655
         * edit : 0
         * pic : 
         * ledgerHash : {"value":"j5x99mtDjwRFU9f27WpT2CsUBNDXgB2xCz84YorYso4ibH"}
         * previousHash : {"value":"j5o5SzvqawEnsTLr8UR7mp1xytdZ6zqgEmQPNodfAVKZ8y"}
         * transactionSetHash : {"value":"j5hnkcQzS8cqGzn1Vabwu2NRUs1NK7mnuHuRbJjnKDELQD"}
         * userAccountSetHash : {"value":"j5qkvvsppXPR4ToHweVyJGnXDPrqdjMBJTdput4sdymQXp"}
         * adminAccountHash : {"value":"j5fSsxhQLKPdnFDig9NTHJ757aoJnY6TLbszHkiX7pDjTw"}
         * dataAccountSetHash : {"value":"j5rAJaReZKd55GTsLTHRTB4a8xM8N7J1VtrwgeTcGLoAKN"}
         * hash : {"value":"j5rsPkB5FGfEuRJTL3fNnoWjfxjEiVes2QVzcdo8sdr1VE"}
         * height : 29
         * timestamp : 0
         */

        private String                 username;
        private String                 time;
        private String                 gps;
        private String                 edit;
        private String                 pic;
        private LedgerHashBean         ledgerHash;
        private PreviousHashBean       previousHash;
        private TransactionSetHashBean transactionSetHash;
        private UserAccountSetHashBean userAccountSetHash;
        private AdminAccountHashBean   adminAccountHash;
        private DataAccountSetHashBean dataAccountSetHash;
        private HashBean               hash;
        private int                    height;
        private int                    timestamp;

        public String getUsername() {
            return username;
        }

//        public void setUsername(String username) {
//            this.username = username;
//        }

        public String getTime() {
            return time;
        }

//        public void setTime(String time) {
//            this.time = time;
//        }

        public String getGps() {
            return gps;
        }

//        public void setGps(String gps) {
//            this.gps = gps;
//        }

        public String getEdit() {
            return edit;
        }

//        public void setEdit(String edit) {
//            this.edit = edit;
//        }

        public String getPic() {
            return pic;
        }

//        public void setPic(String pic) {
//            this.pic = pic;
//        }

        public LedgerHashBean getLedgerHash() {
            return ledgerHash;
        }

//        public void setLedgerHash(LedgerHashBean ledgerHash) {
//            this.ledgerHash = ledgerHash;
//        }

        public PreviousHashBean getPreviousHash() {
            return previousHash;
        }

//        public void setPreviousHash(PreviousHashBean previousHash) {
//            this.previousHash = previousHash;
//        }

        public TransactionSetHashBean getTransactionSetHash() {
            return transactionSetHash;
        }

//        public void setTransactionSetHash(TransactionSetHashBean transactionSetHash) {
//            this.transactionSetHash = transactionSetHash;
//        }

        public UserAccountSetHashBean getUserAccountSetHash() {
            return userAccountSetHash;
        }

//        public void setUserAccountSetHash(UserAccountSetHashBean userAccountSetHash) {
//            this.userAccountSetHash = userAccountSetHash;
//        }

        public AdminAccountHashBean getAdminAccountHash() {
            return adminAccountHash;
        }

//        public void setAdminAccountHash(AdminAccountHashBean adminAccountHash) {
//            this.adminAccountHash = adminAccountHash;
//        }

        public DataAccountSetHashBean getDataAccountSetHash() {
            return dataAccountSetHash;
        }

//        public void setDataAccountSetHash(DataAccountSetHashBean dataAccountSetHash) {
//            this.dataAccountSetHash = dataAccountSetHash;
//        }

        public HashBean getHash() {
            return hash;
        }

//        public void setHash(HashBean hash) {
//            this.hash = hash;
//        }

        public int getHeight() {
            return height;
        }

//        public void setHeight(int height) {
//            this.height = height;
//        }

        public int getTimestamp() {
            return timestamp;
        }

//        public void setTimestamp(int timestamp) {
//            this.timestamp = timestamp;
//        }

        public static class LedgerHashBean implements Serializable {

            @Override
            public String toString() {
                return "LedgerHashBean{" +
                        "value='" + value + '\'' +
                        '}';
            }

            /**
             * value : j5x99mtDjwRFU9f27WpT2CsUBNDXgB2xCz84YorYso4ibH
             */

            private String value;

            public String getValue() {
                return value;
            }

//            public void setValue(String value) {
//                this.value = value;
//            }
        }

        public static class PreviousHashBean implements Serializable {

            @Override
            public String toString() {
                return "PreviousHashBean{" +
                        "value='" + value + '\'' +
                        '}';
            }

            /**
             * value : j5o5SzvqawEnsTLr8UR7mp1xytdZ6zqgEmQPNodfAVKZ8y
             */

            private String value;

            public String getValue() {
                return value;
            }

//            public void setValue(String value) {
//                this.value = value;
//            }
        }

        public static class TransactionSetHashBean implements Serializable {

            @Override
            public String toString() {
                return "TransactionSetHashBean{" +
                        "value='" + value + '\'' +
                        '}';
            }

            /**
             * value : j5hnkcQzS8cqGzn1Vabwu2NRUs1NK7mnuHuRbJjnKDELQD
             */

            private String value;

            public String getValue() {
                return value;
            }

//            public void setValue(String value) {
//                this.value = value;
//            }
        }

        public static class UserAccountSetHashBean implements Serializable {

            @Override
            public String toString() {
                return "UserAccountSetHashBean{" +
                        "value='" + value + '\'' +
                        '}';
            }

            /**
             * value : j5qkvvsppXPR4ToHweVyJGnXDPrqdjMBJTdput4sdymQXp
             */

            private String value;

            public String getValue() {
                return value;
            }

//            public void setValue(String value) {
//                this.value = value;
//            }
        }

        public static class AdminAccountHashBean implements Serializable {

            @Override
            public String toString() {
                return "AdminAccountHashBean{" +
                        "value='" + value + '\'' +
                        '}';
            }

            /**
             * value : j5fSsxhQLKPdnFDig9NTHJ757aoJnY6TLbszHkiX7pDjTw
             */

            private String value;

            public String getValue() {
                return value;
            }

//            public void setValue(String value) {
//                this.value = value;
//            }
        }

        public static class DataAccountSetHashBean implements Serializable {

            @Override
            public String toString() {
                return "DataAccountSetHashBean{" +
                        "value='" + value + '\'' +
                        '}';
            }

            /**
             * value : j5rAJaReZKd55GTsLTHRTB4a8xM8N7J1VtrwgeTcGLoAKN
             */

            private String value;

            public String getValue() {
                return value;
            }

//            public void setValue(String value) {
//                this.value = value;
//            }
        }

        public static class HashBean implements Serializable {

            @Override
            public String toString() {
                return "HashBean{" +
                        "value='" + value + '\'' +
                        '}';
            }

            /**
             * value : j5rsPkB5FGfEuRJTL3fNnoWjfxjEiVes2QVzcdo8sdr1VE
             */

            private String value;

            public String getValue() {
                return value;
            }

//            public void setValue(String value) {
//                this.value = value;
//            }
        }
    }
}
